package function;

import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 87111
 * Date: 2025-06-27
 * Time: 21:58
 */
public class ShowBook implements IWork {
    @Override
    public void work(BookList bookList) {
        int bookSize = bookList.getBookSize();
        for (int i = 0; i < bookSize; i++) {
            System.out.println(bookList.getBooks()[i].toString());
        }
    }
}
